import request from '@/utils/request'
// 获取文章分类列表
export const getListAPI = () => {
  return request.get('/my/cate/list')
}
// 新增文章
export const addListAPI = data => {
  return request.post('/my/cate/add', data)
}
// 删除文章
export const delIdAPI = id => {
  return request.delete('/my/cate/del', { params: { id } })
}
// 更新文章分类
export const updateListAPI = data => {
  return request.put('/my/cate/info', data)
}
